package no.mehdi.usereg.rfid.listeners;

import no.mehdi.usereg.rfid.events.OutputChangeEventApp;

import org.springframework.context.ApplicationListener;

import com.phidgets.event.OutputChangeEvent;
import com.phidgets.event.OutputChangeListener;


public class OutputChangeListenerApp implements OutputChangeListener,ApplicationListener<OutputChangeEventApp>{
	
	

	@Override
	public void onApplicationEvent(OutputChangeEventApp arg0) {
		System.out.println("Fired a "+ arg0);
	}
	

	@Override
	public void outputChanged(OutputChangeEvent outputchangeevent) {
		// TODO Auto-generated method stub
		onApplicationEvent(new OutputChangeEventApp(outputchangeevent.getSource()));
	}
	
	

}
